// @ts-ignore
import request from '@/utils/request'


// 查询定时任务调度列表
export function list(data) {
  return request({
    url: '/eastjet-device-management/frr/list',
    method: 'post',
    data:data
  })
}

export function add(data) {
  return request({
    url: '/eastjet-device-management/frr/add',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}


export function update(data) {
  return request({
    url: '/eastjet-device-management/frr/update',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}

export function updatestate(data) {
  return request({
    url: '/eastjet-device-management/frr/updateState',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}


export function deled(data) {
  return request({
    url: '/eastjet-device-management/frr/delete',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}

export function getType(data) {
    return request({
      url: '/eastjet-device-management/frr/listDeviceType',
      method: 'post',
      headers: {
        'Content-Type': 'application/json'
      },
      data: JSON.stringify(data),
    })
  }


  export function getPerson(data) {
    return request({
      url: '/eastjet-device-management/frr/getPerson',
      method: 'post',
      headers: {
        'Content-Type': 'application/json'
      },
      data: JSON.stringify(data),
    })
  }

  export function getDeptAddPhone(data) {
    return request({
      url: '/eastjet-device-management/frr/getDeptAddPhone',
      method: 'post',
      headers: {
        'Content-Type': 'application/json'
      },
      data: JSON.stringify(data),
    })
  }

  export function getEquipmentList(data) {
    return request({
      url: '/eastjet-device-management/frr/getEquipmentList',
      method: 'post',
      headers: {
        'Content-Type': 'application/json'
      },
      data: JSON.stringify(data),
    })
  }

  export function getFtList(data) {
    return request({
      url: '/eastjet-device-management/ft/list',
      method: 'post',
      headers: {
        'Content-Type': 'application/json'
      },
      data: JSON.stringify(data),
    })
  }

